package com.wcy.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class Shanghu {

    private Integer id;
    private String boss;
    private String name;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private String unit;
    private String address;
    private String image;

    private Integer province;
    private Integer city;
    private Integer district;

    //省市区前台显示
    @TableField(exist = false)
    private String address2;

    private City cityList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBoss() {
        return boss;
    }

    public void setBoss(String boss) {
        this.boss = boss;
    }

    public String getName() {
        return name;
    }

    public City getCityList() {
        return cityList;
    }

    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public void setCityList(City cityList) {
        this.cityList = cityList;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getDistrict() {
        return district;
    }

    public void setDistrict(Integer district) {
        this.district = district;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "Shanghu{" +
                "id=" + id +
                ", boss='" + boss + '\'' +
                ", name='" + name + '\'' +
                ", createTime=" + createTime +
                ", unit='" + unit + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public Shanghu(Integer id, String boss, String name, Date createTime, String unit, String address) {
        this.id = id;
        this.boss = boss;
        this.name = name;
        this.createTime = createTime;
        this.unit = unit;
        this.address = address;
    }

    public Shanghu() {
        super();
    }
}
